/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.messages.service;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.messages.dao.EleEquipmentMessagesDao;
import com.thinkgem.jeesite.modules.messages.entity.EleEquipmentMessages;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 报文查询Service
 * @author 报文查询
 * @version 2017-06-13
 */
@Service
@Transactional(readOnly = true)
public class EleEquipmentMessagesService extends CrudService<EleEquipmentMessagesDao, EleEquipmentMessages> {

	public EleEquipmentMessages get(String id) {
		return super.get(id);
	}
	
	public List<EleEquipmentMessages> findList(EleEquipmentMessages eleEquipmentMessages) {
		return super.findList(eleEquipmentMessages);
	}
	
	public Page<EleEquipmentMessages> findPage(Page<EleEquipmentMessages> page, EleEquipmentMessages eleEquipmentMessages) {
		return super.findPage(page, eleEquipmentMessages);
	}
	
	@Transactional(readOnly = false)
	public void save(EleEquipmentMessages eleEquipmentMessages) {
		super.save(eleEquipmentMessages);
	}
	
	@Transactional(readOnly = false)
	public void delete(EleEquipmentMessages eleEquipmentMessages) {
		super.delete(eleEquipmentMessages);
	}

	@Transactional(readOnly = false)
	public int configResult(String code,String cid){
		return dao.configResult(code, cid);
	}
}